package com.barber.entity;

import org.apache.ibatis.type.Alias;

@Alias("Customer")
public class Customer {
   // public String userid;
    private  int userid;
    private  String username;//String 数据类型
    private  String password;
    private  String phone;
    private  String email;

    public String getEmail() {
        return email;
    }

    public void setEmail(String email) {
        this.email = email;
    }

    @Override
    public String toString() {
        return "Customer{" +
                "userid=" + userid +
                ", username='" + username + '\'' +
                ", password='" + password + '\'' +
                ", phone='" + phone + '\'' +
                ", email='" + email + '\'' +
                '}';
    }
//    @Override
//    public String toString() {
//
//        return "{" +
//                "\"userid\":\""+ userid +"\","+
//                "\"username\":\""+ username +"\","+
//                "\"password\":\""+ password +"\","+
//                "\"phone\":\""+ phone +"\""+
//              "}";
//    }

    public int getUserid() {
        return userid;
    }

    public void setUserid(int userid) {
        this.userid = userid;
    }

    public String getUsername() {
        return username;
    }

    public void setUsername(String username) {
        this.username = username;
    }

    public String getPassword() {
        return password;
    }

    public void setPassword(String password) {
        this.password = password;
    }

    public String getPhone() {
        return phone;
    }

    public void setPhone(String phone) {
        this.phone = phone;
    }
}
